﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Management/MedicalDirector/MasterDirect.master"
    AutoEventWireup="true" CodeFile="Giuongbenh.aspx.cs" Inherits="Management_MedicalDirector_Giuongbenh" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:SqlDataSource ID="nhacungcap" runat="server" ConnectionString="<%$ ConnectionStrings:HOSPITALMANAGEMENTConnectionString %>"
        DeleteCommand="DELETE FROM [tbSupplier] WHERE [ID] = @ID" InsertCommand="INSERT INTO [tbSupplier] ([Name], [Address], [Tel]) VALUES (@Name, @Address, @Tel)"
        SelectCommand="SELECT [ID], [Name], [Address], [Tel] FROM [tbSupplier] ORDER BY [Name]"
        UpdateCommand="UPDATE [tbSupplier] SET [Name] = @Name, [Address] = @Address, [Tel] = @Tel WHERE [ID] = @ID">
        <DeleteParameters>
            <asp:Parameter Name="ID" Type="Int32" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="Name" Type="String" />
            <asp:Parameter Name="Address" Type="String" />
            <asp:Parameter Name="Tel" Type="String" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="Name" Type="String" />
            <asp:Parameter Name="Address" Type="String" />
            <asp:Parameter Name="Tel" Type="String" />
            <asp:Parameter Name="ID" Type="Int32" />
        </UpdateParameters>
    </asp:SqlDataSource>
    <div _designerregion="0">
        <table style="width: 100%;">
            <tr>
                <td clas="tdtalbe" style="text-align: center; color: red; padding-bottom: 10px">
                    <asp:Label ID="lbTitle1" runat="server" Text="Danh sách Giường bệnh" Font-Size="Large"></asp:Label>
                </td>
                <td style="text-align: center; color: green">
                    THÔNG TIN GIƯỜNG BỆNH
                </td>
            </tr>
            <tr>
                <td style="width: 430px">
                    <asp:Panel ID="Panel1" runat="server" Width="423px" Height="320px" ScrollBars="Vertical"
                        Style="overflow: scroll">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                            DataSourceID="SqlDataSource1" Width="100%" CellPadding="4" ForeColor="#333333"
                            GridLines="None" AllowSorting="True">
                            <AlternatingRowStyle BackColor="White" />
                            <Columns>
                                <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" InsertVisible="False"
                                    ReadOnly="True">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="IDRoom" HeaderText="IDRoom" SortExpression="IDRoom">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="BedName" HeaderText="BedName" SortExpression="BedName">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:TemplateField ShowHeader="False">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" OnClick="giuongbenh_click" CommandArgument='<%# Eval("ID") %>'> Xem</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <EditRowStyle BackColor="#2461BF" />
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#EFF3FB" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <SortedAscendingCellStyle BackColor="#F5F7FB" />
                            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                            <SortedDescendingCellStyle BackColor="#E9EBEF" />
                            <SortedDescendingHeaderStyle BackColor="#4870BE" />
                        </asp:GridView>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:HOSPITALMANAGEMENTConnectionString %>"
                            SelectCommand="SELECT * FROM [tbBed]"></asp:SqlDataSource>
                        <table style="width: 100%;">
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
                <td style="vertical-align: top">
                    </asp:Panel>
                    <table style="width: 87%">
                        <tr>
                            <td colspan="2" style="color: #FF0000">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;&nbsp; Khoa:
                            </td>
                            <td>
                                <asp:TextBox ID="txtward" runat="server" Width="200px" ReadOnly="true"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;&nbsp; Mã phòng:
                            </td>
                            <td>
                                <asp:TextBox ID="txtIDRoom" runat="server" Width="200px" ReadOnly="true"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;&nbsp; Tên phòng:
                            </td>
                            <td>
                                <asp:TextBox ID="txtRoomName" runat="server" Width="200px" ReadOnly="true"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;&nbsp; Tên giường:
                            </td>
                            <td>
                                <asp:TextBox ID="txtBedname" runat="server" Width="200px" ReadOnly="true"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span lang="FR">&nbsp;&nbsp; </span>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
